/**
 * Copyright &copy; 2012-2014 <a href="https://github.cn.apestar">JeeSite</a> All rights reserved.
 */
package cn.apestar.modules.sys.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import cn.apestar.common.persistence.DataEntity;
import cn.apestar.modules.sys.entity.User;
import org.hibernate.validator.constraints.Length;

/**
 * 提现表Entity
 * @author LVH
 * @version 2015-12-17
 */
public class SysTx extends DataEntity<SysTx> {
	
	private static final long serialVersionUID = 1L;
	private User user;		// user_id
	private String money;		// money
	private Date txTime;		// tx_time
	private String flag;		// flag
	
	public SysTx() {
		super();
	}

	public SysTx(String id){
		super(id);
	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}
	
	public String getMoney() {
		return money;
	}

	public void setMoney(String money) {
		this.money = money;
	}
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	public Date getTxTime() {
		return txTime;
	}

	public void setTxTime(Date txTime) {
		this.txTime = txTime;
	}
	
	@Length(min=0, max=1, message="flag长度必须介于 0 和 1 之间")
	public String getFlag() {
		return flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}
	
}